<template>
  <view>
    <web-view :src="url"></web-view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      url: ''
    }
  },
  onLoad(options) {
    if (options.url) {
      // 多次解码 URL 参数
      let decodedUrl = options.url;
      while (decodedUrl !== decodeURIComponent(decodedUrl)) {
        decodedUrl = decodeURIComponent(decodedUrl);
      }
      this.url = decodedUrl;
    }
  }
}
</script>

<style>
</style>